package com.easyad.servlet;

import javax.persistence.Entity;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.easyad.run.statTask;

@Entity
public class startupRun extends HttpServlet {

	public static boolean runFlag = false;
	public void init() throws ServletException{
		if (!runFlag){
			runFlag=true;
			System.out.println("-----------------startup run---------------------------");
			statTask.operateOnTime(); 
		}
	}
}